/*
 * @Description: 校验数据类
 * @Author: chenjiaxin
 * @Date: 2021-12-26 09:29:54
 * @LastEditTime: 2021-12-26 09:36:53
 * @FilePath: \novel-serve\src\utils\verify-handle.js
 */
class VerifyUtils {
  verifyEmail (e_mail) {
    const reg = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
    if (reg.test(e_mail)) {
      return true;
    }
    return false;
  }
}

module.exports = new VerifyUtils();